import req from '@/services/http'
import { Good_List,Good_Update,Good_Add} from '@/config/urlGood'

const models = {
	goodList(parentId) {
		return req.get(Good_List+'?parentId='+parentId)
	},
	goodUpdate(obj) {
		return req.post(Good_Update,obj)
	},
	goodAdd(obj) {
		return req.post(Good_Add,obj)
	}
}

export default models